#include <stdio.h>
#include "IOFile.hh"

IOFile::IOFile(const char * filename,const char * mode){
    fp=fopen(filename,mode);
    if(fp==NULL) {
	return ;
    }

}

bool IOFile::setlinemode(){
	if(fp==NULL) return false;
	setlinebuf(fp);
}
bool IOFile::closeFile(){
	fclose(fp);
	fp=NULL;
	delete buffer;
	buffer=NULL;
}

bool IOFile::setBufferSize(int size){
	buffer=new char [size];
}
